package com.leafsaas.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
import java.util.concurrent.atomic.AtomicLong;

/**
 *
 * @author houxifeng
 * @date 2025/11/4
 */
@RestController
@RequestMapping("/segment")
public class SegmentController {

    private final AtomicLong counter = new AtomicLong(0);

    @GetMapping("/next")
    public Map<String, Long> next() {
        return Map.of("id", counter.incrementAndGet());
    }





}
